#include<stdio.h>
int main(){
	int n = 0;
	int a = 0;
	int x=0;
	scanf("%d",&n);
	do{
		a=n%2;
		n=n/2;
		x++;
	}while(a==0&n>0);
	printf("%d",x-1);
	return 0;
}
